
export const searchToJson = searchUrl => {
  let searchParams = new URLSearchParams(searchUrl)
  // return searchParams.get('name')
  let obj = {}
  for (let [key, val] of searchParams.entries()) {
    obj[key] = val
  }
  return obj
}